package com.yincb;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EmpDaoTest {


    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext
                = new ClassPathXmlApplicationContext("applicationContext.xml");

        EmpDao empDao = applicationContext.getBean(EmpDao.class);
        Emp emp = new Emp();
        emp.setEmpno("33");
        emp.setEname("CCC");
//        empDao.updateByAnnotation(emp);
        empDao.update(emp);
    }

}
